package com.cssl.openFeign;

import com.cssl.domain.DtsAddress;
import com.cssl.domain.dto.AddressDto;
import com.cssl.domain.dto.DtsAddressDto;
import com.cssl.util.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "DtsShopProvider9090",path = "/useraddress",contextId = "88")
public interface DtsAddressClient {
    @PostMapping("/listAddress")
     Result getAddressList(@RequestBody DtsAddressDto dtsAddressDto);


    @PostMapping("/getUserAddress")
    Result getUserAddress();

    @PostMapping("/getNationwide")
     Result getNationwide(@RequestBody AddressDto address);

    @PostMapping("/getAllNationwide")
     Result getAllNationwide();


    @PostMapping("/addUserAddress")
     Result addUserAddress(@RequestBody DtsAddress address);


    @PostMapping("/deleteUserAddress")
     Result deleteUserAddress(@RequestBody DtsAddress address);
}
